package me.may.money.service;

import java.util.LinkedHashMap;

/**
 * 交子应用层接口
 * 
 * @author May_Speed
 */
public interface MoneyService {

	double getPlayerMoney(String name);

	void addPlayerMoney(String name, double amount);

	void takePlayerMoney(String name, double amount);

	void setPlayerMoney(String name, double amount);

	void initialPlayerAccount(String name);
	
	boolean hasEnoughMoney(String name, double amount);
	
	boolean hasMoneyAccount(String name);
	
	LinkedHashMap<String, Double> getTop(int limit);
}
